home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 19.zip
/
BS1 part 19
/
power Window v2.5.adf
/
TDI
/
PW2.def
< prev
next >
Wrap
Text File
|
1988-09-15
|
6KB
|
199 lines
DEFINITION MODULE PW2 ;
(* This module should be compiled and placed in the M2 directory along with
the other TDI library modules. The uncompiled code is supplied so that
you can update it with any future releases of the TDI system. *)
(* Written by Martin Murray, for INOVATRONICS, Inc., and copyrighted 1988
by INOVATRONICS, Inc. Last update 09/15/88. *)
FROM SYSTEM IMPORT BYTE, ADDRESS;
FROM ConsoleDevice IMPORT KeyMapPtr;
FROM GraphicsLibrary IMPORT BitMapPtr;
FROM Intuition IMPORT NewWindow, IDCMPFlagSet, WindowFlagSet, GadgetPtr,
ImagePtr, ScreenPtr, ScreenFlagSet, WindowPtr, GadgetFlagSet, RememberPtr,
ActivationFlagSet, IntuitionTextPtr, RequesterPtr, MenuPtr, PropFlagSet,
MenuItemPtr, BorderPtr, MenuFlagSet, ItemFlagSet, RequesterFlagSet,
BoolInfoPtr, PropInfoPtr, StringInfoPtr;
(* Uncomment this for InovaTools1 use.
FROM ITools1 IMPORT DragFlagSet, KnobPtr, KnobFlagSet;
*)
FROM Screens IMPORT NewScreen;
FROM Text IMPORT TextAttrPtr, FontStyleSet, FontFlagSet;
FROM Views IMPORT ModeSet;
(* Each of these PROCEDURES, allocates the data as generated by PowerWindows2.
The whole list of allocated memory is hooked to a RememberPtr with the name
of your module, so just FreeRemember(moduleRememberPtr,TRUE) when done. *)
VAR
PW2EnoughMemory : BOOLEAN;
PW2RememberPtr : POINTER TO RememberPtr;
PROCEDURE MakeBoolGadgetStructure(
NextGadget: GadgetPtr;
LeftEdge, TopEdge, Width, Height: INTEGER;
Flags: GadgetFlagSet;
Activation: ActivationFlagSet;
GadgetType: CARDINAL;
GadgetRender, SelectRender: ADDRESS;
GadgetText: IntuitionTextPtr;
MutualExclude: LONGINT;
SpecialInfo: BoolInfoPtr;
GadgetID: CARDINAL;
UserData: ADDRESS
) : ADDRESS;
PROCEDURE MakeBoolInfoStructure(
Flags: BITSET;
Mask : ADDRESS
) : ADDRESS;
PROCEDURE MakeBorderStructure(
LeftEdge, TopEdge: INTEGER;
FrontPen, BackPen, DrawMode, Count: BYTE;
XY: ADDRESS;
NextBorder: BorderPtr
) : ADDRESS;
(* Uncomment this for InovaTools1 use.
PROCEDURE MakeDragInfoStructure(
LeftEdge, TopEdge, RightEdge, BottomEdge: INTEGER;
Flags: DragFlagSet;
UpdateRoutine: ADDRESS
) : ADDRESS;
*)
PROCEDURE MakeImageStructure(
LeftEdge, TopEdge, Width, Height, Depth: INTEGER;
ImageData: ADDRESS;
PlanePick, PlaneOnOff: BYTE;
NextImage: ImagePtr
) : ADDRESS;
PROCEDURE MakeITextStructure(
FrontPen, BackPen, DrawMode: BYTE;
LeftEdge, TopEdge: INTEGER;
ITextFont: TextAttrPtr;
IText: ADDRESS;
NextText: IntuitionTextPtr
) : ADDRESS;
(* Uncomment this for InovaTools1 use.
PROCEDURE MakeKnobStructure(
NextKnob: KnobPtr;
XCenter, YCenter: CARDINAL;
Flags: KnobFlagSet;
Value, Range, Angle, Offset, Steps, ArrowRadius, KnobRadius: CARDINAL;
StartAngle, StopAngle, FillColor, BorderColor, ArrowColor: CARDINAL;
KnobID: CARDINAL;
UpdateRoutine: ADDRESS;
UserData: LONGINT
) : ADDRESS;
*)
PROCEDURE MakeMenuItemStructure(
NextItem: MenuItemPtr;
LeftEdge, TopEdge, Width, Height: INTEGER;
Flags: ItemFlagSet;
MutualExclude: LONGINT;
ItemFill: ADDRESS;
SelectFill: ADDRESS;
Command: BYTE;
SubItem: MenuItemPtr
) : ADDRESS;
PROCEDURE MakeMenuStructure(
NextMenu: MenuPtr;
LeftEdge, TopEdge, Width, Height: INTEGER;
Flags: MenuFlagSet;
MenuName: ADDRESS;
FirstItem: MenuItemPtr
) : ADDRESS;
PROCEDURE MakeNewWindowStructure(
LeftEdge, TopEdge, Width, Height: INTEGER;
DetailPen, BlockPen: BYTE;
IDCMPFlags: IDCMPFlagSet;
Flags: WindowFlagSet;
FirstGadget: GadgetPtr;
CheckMark: ImagePtr;
Title: ADDRESS;
Screen: ScreenPtr;
BitMap: BitMapPtr;
MinWidth, MinHeight, MaxWidth, MaxHeight: INTEGER;
Type: ScreenFlagSet
) : ADDRESS;
PROCEDURE MakeNewScreenStructure(
LeftEdge, TopEdge, Width, Height, Depth: INTEGER;
DetailPen, BlockPen: BYTE;
ViewModes: ModeSet;
Type: ScreenFlagSet;
Font: TextAttrPtr;
DefaultTitle: ADDRESS;
Gadgets: GadgetPtr;
CustomBitMap: BitMapPtr
) : ADDRESS;
PROCEDURE MakePropGadgetStructure(
NextGadget: GadgetPtr;
LeftEdge, TopEdge, Width, Height: INTEGER;
Flags: GadgetFlagSet;
Activation: ActivationFlagSet;
GadgetType: CARDINAL;
GadgetRender, SelectRender: ADDRESS;
GadgetText: IntuitionTextPtr;
MutualExclude: LONGINT;
SpecialInfo: PropInfoPtr;
GadgetID: CARDINAL;
UserData: ADDRESS
) : ADDRESS;
PROCEDURE MakePropInfoStructure(
Flags: PropFlagSet;
HorizPot, VertPot, HorizBody, VertBody: CARDINAL
) : ADDRESS;
PROCEDURE MakeRequesterStructure(
LeftEdge, TopEdge, Width, Height, RelLeft, RelTop: INTEGER;
ReqGadget: GadgetPtr;
ReqBorder: BorderPtr;
ReqText: IntuitionTextPtr;
Flags: RequesterFlagSet;
BackFill: BYTE;
ImageBMap: BitMapPtr;
RWindow: WindowPtr
) : ADDRESS;
PROCEDURE MakeStringGadgetStructure(
NextGadget: GadgetPtr;
LeftEdge, TopEdge, Width, Height: INTEGER;
Flags: GadgetFlagSet;
Activation: ActivationFlagSet;
GadgetType: CARDINAL;
GadgetRender, SelectRender: ADDRESS;
GadgetText: IntuitionTextPtr;
MutualExclude: LONGINT;
SpecialInfo: StringInfoPtr;
GadgetID: CARDINAL;
UserData: ADDRESS
) : ADDRESS;
PROCEDURE MakeStringInfoStructure(
Buffer, UndoBuffer: ADDRESS;
BufferPos, MaxChars, DispPos: INTEGER;
LongInt: LONGINT;
AltKeyMap: KeyMapPtr
) : ADDRESS;
PROCEDURE MakeTextAttrStructure(
Name: ADDRESS;
Size: CARDINAL;
Style: FontStyleSet;
Flags: FontFlagSet
) : ADDRESS;
END PW2.